using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CreateObjectSystem : Singleton<CreateObjectSystem>
{
    private Dictionary<string, GameObject> objectDic = new Dictionary<string, GameObject>();
    public GameObject CreateObject(string name)
    {
        if(!objectDic.ContainsKey(name))
            objectDic.Add(name, Resources.Load<GameObject>(name));

        return objectDic[name];
    }
}
